xmalloc: handle correctly page allocation when align > size
authorJulien Grall <julien.grall@linaro.org>
Mon, 10 Mar 2014 13:40:50 +0000 (14:40 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 10 Mar 2014 13:40:50 +0000 (14:40 +0100)
commitac2cba2901779f66bbfab298faa15c956e91393a
tree939c3abe112a4b0bb406552f5f8037e4fd8a87e0
parent739c5ee78d438a0530002c5876333990ada99fd8
xmalloc: handle correctly page allocation when align > size

When align is superior to size, we need to retrieve the order from
align during multiple page allocation. I guess it was the goal of the commit
fb034f42 "xmalloc: make close-to-PAGE_SIZE allocations more efficient".

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Keir Fraser <keir@xen.org>
xen/common/xmalloc_tlsf.c